﻿using System;
using System.Windows.Forms;
using System.Configuration;
namespace GoogleEarthClasses.Global
{
    public static class Constants
    {
        public const string K_OutboxName = "\\Outbox\\";
        public const string K_SentName = "\\Sent\\";
        public const string K_ImageCacheName = "\\Image-Cache\\";
        public const string K_InboxName = "\\Inbox\\";
        public const string K_ErrorName = "\\Error\\";

        public static string K_DirImagesName = "Images";
        public static string K_ImagesExtension = ".jpeg";

        
        public static string K_ApplicationStartupPath = ConfigurationManager.AppSettings["ApplicationPath"];
        public static string K_OutboxPath = K_ApplicationStartupPath + K_OutboxName;
        public static string K_SentPathPath = K_ApplicationStartupPath + K_SentName;
        public static string K_ImageCachePath = K_ApplicationStartupPath + K_ImageCacheName;
        public static string K_InboxPath = K_ApplicationStartupPath + K_InboxName;
        public static string K_ErrorPath = K_ApplicationStartupPath + K_ErrorName;

        public const string k_PathSaveImages = "C:\\Temp\\";
        
        public const string k_Filename = "C:\\PolePositionDesktop.kml";
        
        public const string k_Filename_Directions = "C:\\Directions.kml";
        public const string k_Filename_Assets = "C:\\Assets.kml";
        public const string k_Filename_Areas = "C:\\Areas.kml";

        public const string k_FilenameMaps = "C:\\route.kml";
        public const string k_ImagesUrl = "http://www.dev-poleposition.com/Dev/WebSite/ImageTable.aspx?PositionId=";
        public const string k_linkIdImage = "http://www.dev-poleposition.com/Deploy/Website/ViewImage.aspx?ImageId=";
        public const string k_MobileConnectionError = "The connection to the mobile database could not be established. Please check database is not protected by password or  file is not corrupted";

        public const string k_SelectedDatabaseMessage = "Please click Accept button to view photos and points. \n\r Click Upload to server to start de process";
        public const string k_FormatIncorret = "Please fill in correct format";


        public const int k_ThumbailWidth = 160;
        public const int k_ThumbailHeight = 120;


        public const string k_DownloadingText = "Downloading last version ...";

        public const string k_UriDownloadFile = "http://www.dev-poleposition.com/Deploy/MobileDeploy/";
        public const string k_UploadingPointsText = "Uploading Points ...";
        public const string k_DownloadImages = "Downloading images ";


        public const string k_DeployMobile = "Mobile.zip";
        public const string k_DeployMobileFull = "FullMobile.zip";
        public const string k_DeployMobileVersion = "Version.txt";

        public const string K_BinaryFolder = "Bin\\";
        public static string K_InboxBinary = K_InboxPath + K_BinaryFolder;
        public const string k_DeployMobileBinaryControlLibrary = "CommonLibraries.ControlLibrary.dll";
        public const string k_DeployMobileBinaryDeviceLibrary = "CommonLibraries.DeviceLibrary.dll";
        public const string k_DeployMobileBinaryProjectCommon = "CommonLibraries.ProjectCommon.dll";
        public const string k_DeployMobileBinaryExecute = "demo.exe";
        public const string k_DeployMobileBinaryDatabase = "demo.sdf";

        public static string k_MainFormTitle = "Pole Position Desktop";

        public const string k_stopProcessText = "The upload process will be stopped. Do you want to continue?";


        public const string K_ServerConnection = "Data Source=sql2k509.discountasp.net;Initial Catalog=SQL2005_390264_devpoleposi;Persist Security Info=True;User ID=SQL2005_390264_devpoleposi_user;PWD=password";

        public const string K_GoogleMapDirectionsKML = "http://maps.google.com/maps?f=d&hl=en&saddr=KML_SOURCE_LATITUDE,KML_SOURCE_LONGITUDE&daddr=KML_DESTINATION_LATITUDE,KML_DESTINATION_LONGITUDE&om=1&output=kml";
        public const string K_GoogleMapDirectionsHQKML = "http://maps.google.com/maps?f=d&hl=en&saddr=KML_SOURCE_HQ&daddr=KML_DESTINATION_LATITUDE,KML_DESTINATION_LONGITUDE&om=1&output=kml";
        public const string K_GoogleMapDirectionsHQAddress = "1300%20S.%20Interocean%20Holyoke,%20CO%20%2080734";
    }
}
